import request from '@/api/request'

//数据列表
export function index(params) {
	return request({ url: '/app/Transfer/index',method: 'post',data: params})
}



//修改排序开关
export function updateExt(params) {
	return request({ url: '/app/Transfer/updateExt',method: 'post',data: params})
}



//添加
export function add(params) {
	return request({ url: '/app/Transfer/add',method: 'post',data: params})
}



//修改
export function update(params) {
	return request({ url: '/app/Transfer/update',method: 'post',data: params})
}

export function getUpdateInfo(params) {
	return request({ url: '/app/Transfer/getUpdateInfo',method: 'post',data: params})
}



//删除
export function del(params) {
	return request({ url: '/app/Transfer/delete',method: 'post',data: params})
}



//查看详情
export function detail(params) {
	return request({ url: '/app/Transfer/detail',method: 'post',data: params})
}

//根据编码和批次查询及时库存
export function getMaterialFromStock(params) {
	return request({ url: '/app/Transfer/get_material_from_stock',method: 'post',data: params})
}

//保存调拨单
export function createTransfer(params) {
	return request({ url: '/app/Transfer/create_transfer_web',method: 'post',data: params})
}

//保存调拨单(详情页面)
export function updateTransfer(params) {
	return request({ url: '/app/Transfer/update_transfer',method: 'post',data: params})
}
//审核调拨单
export function audit(params) {
	return request({ url: '/app/Transfer/audit',method: 'post',data: params})
}
//反审核调拨单
export function unAudit(params) {
	return request({ url: '/app/Transfer/unAudit',method: 'post',data: params})
}
